﻿@model ITProject.WebUI.Models.Project.ProjectProjectViewModel

@{
    ViewBag.Title = "Projekt "+Model.Name;
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="podtytul">
<table class="inbox" width="100%">
<tr>

<td style="text-align:center">
<h3>@Model.Name</h3>
<p style="font-size:small">
@Model.ShortDescription</p>
</td>
<td style="text-align:right;">
@{
    string av=@Url.Content("~/UserFiles/ProjectLogos/"+Model.LogoPath);
    @:<img src=@av alt="avatar" width="200" height="170"/>
}
</td>
</tr>
<tr>
<td colspan="2" class="label" style="font-size:small">
    Data rozpoczęcia projektu: @Model.StartDate.ToLongDateString()<br />

</td>

</tr>
</table>
</div>
<div class="menuP">
@Html.Partial(MVC.Shared.Views.Partials._ProjectMenuControl,Model.MenuViewModel)

</div>
<div class="opisP">
<p>
    @Model.Description
</p>
</div>
<span class="button" id="showcomment" style="width:855px">Komentarze</span>
<div class="CommentP" style="display:none">

@Html.Partial(MVC.Project.ActionNames.AddComment,Model.newComment)

@if (Model.comment.Count == 0)
{
   <span>  < brak nowych komentarzy ></span>
}
@foreach (var c in Model.comment)
{
    <span class="koment">
        @Html.DisplayFor(cc=>c.Text)
    <span class="komentStopka"><b>Dodany przez:</b> @Html.DisplayFor(cc=>c.UserName)<b> Czas dodania:</b> @Html.DisplayFor(cc=>c.datetime)</span>
    </span>
}
</div>